package com.example.mylearn.designPattern.chainOfResponsibility;

/**
 * @author Dreamer
 */
public class Application {

    public static void main(String[] args) {

        OrderValidation orderValidation = new OrderValidation();
        OrderFill orderFill = new OrderFill();
        OrderAmountCalculate orderAmountCalculate = new OrderAmountCalculate();
        OrderCreate orderCreate = new OrderCreate();


        orderValidation.setNext(orderFill);
        orderFill.setNext(orderAmountCalculate);
        orderAmountCalculate.setNext(orderCreate);

        orderValidation.process(new OrderInfo());


    }









}
